package com.le.tester.onjava8.l_3_4;

import com.le.tester.javaThink.fourth.net.mindview.util.CountingMapData;

import java.util.Map;

/**
 * createTime：2023/2/7 10:07
 * description：map上使用函数式操作
 */
public class FunctionalMap {
    private static CountingMapData map;

    public static void main(String[] args) {
        map.entrySet().stream()
                .map(Map.Entry::getValue)
                .filter(v -> v.startsWith("Dark"))
                .map(v -> v.replaceFirst("Dark", "Hot"))
                .forEach(System.out::println);
    }

}
